package net.esj.basic.utils.participle;

import java.io.IOException;
import java.io.Reader;

public interface WordsTokenizer {

	public String segWords(Reader input, String wordSpilt) throws IOException;
	
	/**
	 * 默认以“ | ”分隔
	 * @param input
	 * @return
	 * @throws IOException
	 */
	public String segWords(Reader input) throws IOException;
	
	public String segWords(String txt, String wordSpilt) throws IOException;
	
	/**
	 * 默认以“ | ”分隔
	 * @param txt
	 * @return
	 * @throws IOException
	 */
	public String segWords(String txt) throws IOException;
}
